package com.ztesoft.web.taskgenerator.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmTaskStageDefineArg {
    private String pk_name = "DEFINE_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmTaskStageDefineCriteria> oredCriteria;

    public DmTaskStageDefineArg() {
        oredCriteria = new ArrayList<DmTaskStageDefineCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmTaskStageDefineCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmTaskStageDefineCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmTaskStageDefineCriteria or() {
    	DmTaskStageDefineCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmTaskStageDefineCriteria createCriteria() {
    	DmTaskStageDefineCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmTaskStageDefineCriteria createCriteriaInternal() {
    	DmTaskStageDefineCriteria criteria = new DmTaskStageDefineCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmTaskStageDefineCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmTaskStageDefineCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmTaskStageDefineCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmTaskStageDefineCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmTaskStageDefineCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskStageDefineCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskStageDefineCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskStageDefineCriterion(condition, value1, value2));
        }

        public DmTaskStageDefineCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmTaskStageDefineCriteria) this;
        }
        public DmTaskStageDefineCriteria andDefineIdIsNull() {
            addCriterion("DEFINE_ID is null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdIsNotNull() {
            addCriterion("DEFINE_ID is not null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdEqualTo(Integer value) {
            addCriterion("DEFINE_ID =", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotEqualTo(Integer value) {
            addCriterion("DEFINE_ID <>", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdGreaterThan(Integer value) {
            addCriterion("DEFINE_ID >", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEFINE_ID >=", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdLessThan(Integer value) {
            addCriterion("DEFINE_ID <", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdLessThanOrEqualTo(Integer value) {
            addCriterion("DEFINE_ID <=", value, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdLike(Integer value) {
            addCriterion("DEFINE_ID like ", value, "DEFINE_ID", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotLike(Integer value) {
            addCriterion("DEFINE_ID  not like ", value, "DEFINE_ID", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdLeftLike(Integer value) {
            addCriterion("DEFINE_ID like ", value, "DEFINE_ID", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotLeftLike(Integer value) {
            addCriterion("DEFINE_ID  not like ", value, "DEFINE_ID", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdRightLike(Integer value) {
            addCriterion("DEFINE_ID like ", value, "DEFINE_ID", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotRightLike(Integer value) {
            addCriterion("DEFINE_ID  not like ", value, "DEFINE_ID", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdIn(List<Integer> values) {
            addCriterion("DEFINE_ID  in ", values, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotIn(List<Integer> values) {
            addCriterion("DEFINE_ID not in ", values, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdBetween(Integer value1, Integer value2) {
            addCriterion("DEFINE_ID between ", value1, value2, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andDefineIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DEFINE_ID not between ", value1, value2, "DEFINE_ID");
            return (DmTaskStageDefineCriteria) this;
        }
        public DmTaskStageDefineCriteria andOperTypeIsNull() {
            addCriterion("OPER_TYPE is null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeIsNotNull() {
            addCriterion("OPER_TYPE is not null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeEqualTo(Integer value) {
            addCriterion("OPER_TYPE =", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotEqualTo(Integer value) {
            addCriterion("OPER_TYPE <>", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeGreaterThan(Integer value) {
            addCriterion("OPER_TYPE >", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("OPER_TYPE >=", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeLessThan(Integer value) {
            addCriterion("OPER_TYPE <", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeLessThanOrEqualTo(Integer value) {
            addCriterion("OPER_TYPE <=", value, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeLike(Integer value) {
            addCriterion("OPER_TYPE like ", value, "OPER_TYPE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotLike(Integer value) {
            addCriterion("OPER_TYPE  not like ", value, "OPER_TYPE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeLeftLike(Integer value) {
            addCriterion("OPER_TYPE like ", value, "OPER_TYPE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotLeftLike(Integer value) {
            addCriterion("OPER_TYPE  not like ", value, "OPER_TYPE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeRightLike(Integer value) {
            addCriterion("OPER_TYPE like ", value, "OPER_TYPE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotRightLike(Integer value) {
            addCriterion("OPER_TYPE  not like ", value, "OPER_TYPE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeIn(List<Integer> values) {
            addCriterion("OPER_TYPE  in ", values, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotIn(List<Integer> values) {
            addCriterion("OPER_TYPE not in ", values, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeBetween(Integer value1, Integer value2) {
            addCriterion("OPER_TYPE between ", value1, value2, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andOperTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("OPER_TYPE not between ", value1, value2, "OPER_TYPE");
            return (DmTaskStageDefineCriteria) this;
        }
        public DmTaskStageDefineCriteria andStageIsNull() {
            addCriterion("STAGE is null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageIsNotNull() {
            addCriterion("STAGE is not null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageEqualTo(Integer value) {
            addCriterion("STAGE =", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotEqualTo(Integer value) {
            addCriterion("STAGE <>", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageGreaterThan(Integer value) {
            addCriterion("STAGE >", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAGE >=", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageLessThan(Integer value) {
            addCriterion("STAGE <", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageLessThanOrEqualTo(Integer value) {
            addCriterion("STAGE <=", value, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageLike(Integer value) {
            addCriterion("STAGE like ", value, "STAGE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotLike(Integer value) {
            addCriterion("STAGE  not like ", value, "STAGE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageLeftLike(Integer value) {
            addCriterion("STAGE like ", value, "STAGE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotLeftLike(Integer value) {
            addCriterion("STAGE  not like ", value, "STAGE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageRightLike(Integer value) {
            addCriterion("STAGE like ", value, "STAGE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotRightLike(Integer value) {
            addCriterion("STAGE  not like ", value, "STAGE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageIn(List<Integer> values) {
            addCriterion("STAGE  in ", values, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotIn(List<Integer> values) {
            addCriterion("STAGE not in ", values, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageBetween(Integer value1, Integer value2) {
            addCriterion("STAGE between ", value1, value2, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andStageNotBetween(Integer value1, Integer value2) {
            addCriterion("STAGE not between ", value1, value2, "STAGE");
            return (DmTaskStageDefineCriteria) this;
        }
        public DmTaskStageDefineCriteria andPriorityIsNull() {
            addCriterion("PRIORITY is null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityIsNotNull() {
            addCriterion("PRIORITY is not null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityEqualTo(Integer value) {
            addCriterion("PRIORITY =", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotEqualTo(Integer value) {
            addCriterion("PRIORITY <>", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityGreaterThan(Integer value) {
            addCriterion("PRIORITY >", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityGreaterThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY >=", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityLessThan(Integer value) {
            addCriterion("PRIORITY <", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityLessThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY <=", value, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityLeftLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotLeftLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityRightLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotRightLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityIn(List<Integer> values) {
            addCriterion("PRIORITY  in ", values, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotIn(List<Integer> values) {
            addCriterion("PRIORITY not in ", values, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY between ", value1, value2, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andPriorityNotBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY not between ", value1, value2, "PRIORITY");
            return (DmTaskStageDefineCriteria) this;
        }
        public DmTaskStageDefineCriteria andIsLastStageIsNull() {
            addCriterion("IS_LAST_STAGE is null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageIsNotNull() {
            addCriterion("IS_LAST_STAGE is not null");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageEqualTo(String value) {
            addCriterion("IS_LAST_STAGE =", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotEqualTo(String value) {
            addCriterion("IS_LAST_STAGE <>", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageGreaterThan(String value) {
            addCriterion("IS_LAST_STAGE >", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageGreaterThanOrEqualTo(String value) {
            addCriterion("IS_LAST_STAGE >=", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageLessThan(String value) {
            addCriterion("IS_LAST_STAGE <", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageLessThanOrEqualTo(String value) {
            addCriterion("IS_LAST_STAGE <=", value, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageLike(String value) {
            addCriterion("IS_LAST_STAGE like ", value, "IS_LAST_STAGE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotLike(String value) {
            addCriterion("IS_LAST_STAGE  not like ", value, "IS_LAST_STAGE", 1);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageLeftLike(String value) {
            addCriterion("IS_LAST_STAGE like ", value, "IS_LAST_STAGE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotLeftLike(String value) {
            addCriterion("IS_LAST_STAGE  not like ", value, "IS_LAST_STAGE", 0);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageRightLike(String value) {
            addCriterion("IS_LAST_STAGE like ", value, "IS_LAST_STAGE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotRightLike(String value) {
            addCriterion("IS_LAST_STAGE  not like ", value, "IS_LAST_STAGE", 2);
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageIn(List<String> values) {
            addCriterion("IS_LAST_STAGE  in ", values, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotIn(List<String> values) {
            addCriterion("IS_LAST_STAGE not in ", values, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageBetween(String value1, String value2) {
            addCriterion("IS_LAST_STAGE between ", value1, value2, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

        public DmTaskStageDefineCriteria andIsLastStageNotBetween(String value1, String value2) {
            addCriterion("IS_LAST_STAGE not between ", value1, value2, "IS_LAST_STAGE");
            return (DmTaskStageDefineCriteria) this;
        }

    }

    public static class DmTaskStageDefineCriteria extends GeneratedCriteria {

        protected DmTaskStageDefineCriteria() {
            super();
        }
    }

    public static class DmTaskStageDefineCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmTaskStageDefineCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmTaskStageDefineCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmTaskStageDefineCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmTaskStageDefineCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmTaskStageDefineCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmTaskStageDefineCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}